package org.xg.study.pd;

import java.util.Date;
import java.util.Map;
import java.util.concurrent.ConcurrentHashMap;

/**
 * @author CMG
 * @version 1.0
 * @description 模拟审核服务
 * @cLassName AuthService
 * @date 2021/9/16 9:35
 **/
public class AuthService {
    private static Map<String, Date> authMap = new ConcurrentHashMap<>();

    /**
     * 查询审核信息(时间)
     * @param uId
     * @param orderId
     * @return
     */
    public static Date queryAuthInfo(String uId, String orderId) {
        return authMap.get(uId.concat(orderId));
    }

    /**
     * 审核流程
     * @param uId
     * @param orderId
     */
    public static void auth(String uId, String orderId) {
        authMap.put(uId.concat(orderId), new Date());
    }
}
